//
//  LoginMainAction.h
//  FinancialStore
//
//  Created by 王晓萌 on 16/8/8.
//  Copyright © 2016年 zhenqiu. All rights reserved.
//

#import "BaseAction.h"
#import <UIKit/UIKit.h>
#import "AppDelegate.h"
typedef void(^BlockWithBtn)();
typedef NS_ENUM(NSInteger, kLocalConfig) {
    kLocalConfigLogin = 0,
    kLocalConfigQuick = 1,
    kLocalConfigForget = 3,
};


@interface LoginMainAction : BaseAction

@property (nonatomic,copy)BlockWithBtn block;
-(void)start;

+ (NSArray *)getLocalConfig:(NSInteger)type;

- (void)gorGoBackToMeViewController;

+ (void)jumpWith:(UIViewController *)viewController index:(NSInteger)index;
+ (void)jumpWith:(UIViewController *)viewController index:(NSInteger)index andIsRn:(BOOL)isRn;


-(void)getVerifyCode:(NSString*)phone withCallBack:(ActionCallBack)callBack;
-(void)quickLogin:(NSString*)phone withCode:(NSString*)verifyCode withCallBlock:(ActionCallBack)callBack;
//快速登录
-(void)loginWithUserName:(NSString *)phone withPassWord:(NSString *)passWord withCallBlock:(ActionCallBack)callBack;
//注册验证码
-(void)registerForProvingWithPhoneNumber:(NSString *)phoneNumber withCallBack:(ActionCallBack)callBack;
-(void)registerForPhoneNumber:(NSString *)phoneNumber withChecksms:(NSString *)checksms withPasswd:(NSString *)passwd withRegisterPasswd:(NSString *)registerPasswd withCallBack:(ActionCallBack)callBack;
- (void)forgotWithPhoneNumber:(NSString *)phoneNumber withCallBack:(ActionCallBack)callBack;
//忘记密码
- (void)forGotForLoginWithPhoneNumber:(NSString *)phoneNumber withChecksms:(NSString *)checksms withPasswd:(NSString *)passwd withConfirmPasswd:(NSString *)confirmPasswd withCallBack:(ActionCallBack)callBack;
+ (void)quickLoginWithUserName:(NSString *)phone withCallBlock:(ActionCallBack)callBack;
@end
